import request from '@/utils/request'

export function attendanceInfoList(query) {
  return request({
    url: '/infos',
    method: 'get',
    params: query
  })
}

export function attendanceExceptionInfoList(query) {
  return request({
    url: '/info/exceptions',
    method: 'get',
    params: query
  })
}

export function syncAttendanceInfo() {
  return request({
    url: '/info/sync',
    method: 'get'
  })
}

export function rangeSyncAttendanceInfo(data) {
  return request({
    url: '/info/rangesync',
    method: 'post',
    data
  })
}
